package edu.zut.cs.software.person.customer.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import edu.zut.cs.software.person.customer.dao.CustomerDao;
import edu.zut.cs.software.person.customer.domain.Customer;
import edu.zut.cs.software.person.customer.service.CustomerManager;
import edu.zut.cs.software.teach.Base.service.impl.GenericManagerImpl;
/**
 * 
 * @author wenmanke
 *
 */
@Service("customerManager")
public  class CustomerManagerImpl extends GenericManagerImpl<Long, Customer> implements CustomerManager {
	
	CustomerDao customerDao;
	@Autowired
	public void setCustomerDao(CustomerDao customerDao) {
		this.customerDao=customerDao;
		this.dao=customerDao;
	}
	@Override
	public Customer findById(Long id) {
		// TODO Auto-generated method stub
		return null;
	}
	//return shopping information
	public String CustomerInformation(Customer customer) {
		// TODO Auto-generated method stub
		String Info;
		Info="商品名称："+customer.getName()+" "+"商品价格："+customer.getPrice()+"价格";
		return Info;
	}
	@Override
	public Customer echo(Customer customer) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void Delete(Customer customer) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void Add(Customer customer) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void Modify(Customer customer) {
		// TODO Auto-generated method stub
		
	}

	
}
